package com.my.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.entity.AttendanceLog;
import com.my.mapper.AttendanceLogMapper;
import com.my.service.AttendanceLogService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttendanceLogServiceImpl extends ServiceImpl<AttendanceLogMapper, AttendanceLog> implements AttendanceLogService {

    @Override
    public IPage<AttendanceLog> getList(IPage<AttendanceLog> page, AttendanceLog log) {
        return baseMapper.getList(page, log);
    }

    @Override
    public AttendanceLog getByUserAttendCreate(Long userId, Long curriculumId, String date) {
        return baseMapper.getByUserAttendCreate(userId, curriculumId, date);
    }

    @Override
    public List<AttendanceLog> getApiList(Long userId, Integer userType, Long classId) {
        return baseMapper.getApiList(userId, userType, classId);
    }

}
